<?php
 	ini_set("include_path", ".:../:./includes:../includes");

	extract($_REQUEST);
	require_once("includes/constants.php");
	require_once("includes/database.php");


	if (reassignTask($oi_item_id, $t_date_assigned,$t_employee_id, $t_hours_of_work) != null) {
		$confirmationMessage = "Task " . $selectedtask . " has been reassigned.";
		$_SESSION[TASKS] = getOutstandingTasks();
		header( 'Location: confirmationPage.php?' . "confirmationMessage=" .$confirmationMessage) ;
	}
	else {
		$errorMessage = "There has been a problem reassigning the task. Task ID:" . $selectedTask;
		header( 'Location: errorPage.php?' . "errorMessage=" . $errorMessage ) ;
	}	
	;

?>
